Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sass-math-pow

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-math-pow

Math pow() polyfill/feature detection with non-integer exponents support for (without compass) ruby sass, sass and sass+eyeglass

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
increased by7.78%
Maintainers
1
Weekly downloads
 
Created
Source

sass-math-pow

david Build Status

Math pow() polyfill/feature detection with non-integer exponents support for (without compass) ruby sass, plain sass and sass+eyeglass

It will autodetect whether pow() with native non-integer exponents support is available (by eyeglass+sass with eyeglass-math) for full performance and also tries to intall it (as dependency of this package), otherwise, in case of ruby sass without compass or plain sass, a pow() polyfill is used instead that supports pow() with non-integer exponents.

This polyfill is useful for projects that may use pow() with non-integer exponents and should correctly caluclate across different sass variants and versions.

Usage

> npm install --save-dev sass-math-pow

Note: To @import from npm packages/node_modules with ruby sass or plain sass (without eyeglass), sass-include-paths helper may be useful.

@import 'math-pow';
@debug poly-pow(9, 0.5); // =3 across different sass variants

Credits

Performance and code improvements by xi. Polyfill by drtimofey, script based on script by davidkpiano, see these links

Keywords

FAQs

Package last updated on 26 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc